package models

type Result struct {
	Success bool       `json:"success"`
	Code    int        `json:"code"`
	Msg     string     `json:"msg"`
	Data    ResultData `json:"data"`
}

type ResultList struct {
	ID               int64  ` gorm:"column:id"`
	Code             string `gorm:"column:code" json:"code"`
	InitAddress      string `gorm:"column:InitAddress" json:"InitAddress"`
	StartAddress     string `gorm:"column:StartAddress" json:"StartAddress"`
	PlantName        string `gorm:"column:PlantName" json:"PlantName"`
	VarietyName      string `gorm:"column:VarietyName" json:"VarietyName"`
	ApplyCompanyName string `gorm:"column:ApplyCompanyName" json:"ApplyCompanyName"`
	TakeLink         string `gorm:"column:TakeLink" json:"TakeLink"`
	TakeCompany      string `gorm:"column:TakeCompany" json:"TakeCompany"`
	TakeNum          string `gorm:"column:TakeNum" json:"TakeNum"`
	IssueDate        string `gorm:"column:IssueDate" json:"IssueDate"`
}

type ResultData0 struct {
	Total int          `json:"total"`
	List  []ResultList `json:"list"`
}

type ResultData struct {
	Code        int         `json:"code"`
	Message     string      `json:"message"`
	Data        ResultData0 `json:"data"`
	Timestamp   int64       `json:"timestamp"`
	ExecuteTime int         `json:"executeTime"`
}
